package com.example.demo.common;

import org.springframework.security.core.context.SecurityContextHolder;

import com.example.demo.permission.user.pojo.LtUser;

public class UserUtil {
	public static LtUser getCurrentUser() {
		return (LtUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
	}
}





